import { post } from '@/utils/axios';
const options = {
  headers: {
    'Content-Type': 'application/x-www-form-urlencoded',
  },
};
export default {
  // 获取文档列表
  getEPMTableInfo(data) {
    return post('/Windchill/servlet/gwc/platform/epm/getEPMTableInfo', data);
  },
  // 设置文档表头
  setEPMTableColumns(data) {
    return post(`/Windchill/servlet/gwc/platform/epm/setEPMTableColumns`, data);
  },
  // 保存文档表头
  saveEPMTableColumns(data) {
    return post('/Windchill/servlet/gwc/platform/epm/saveEPMTableColumns', data);
  },
  // 获取文档详情内容---主内容
  getWTDocPrimaryFile(data) {
    return post('/Windchill/servlet/gwc/platform/epm/content/getEPMPrimaryFile', data);
  },
  // 获取文档详情内容---附件
  getWTDocSecondaryFiles(data) {
    return post('/Windchill/servlet/gwc/platform/epm/content/getEPMSecondaryFiles', data);
  },
  // 获取文档详情相关对象---部件
  getEPMRelevantPart(data) {
    return post('/Windchill/servlet/gwc/platform/epm/refObj/getEPMRelevantPart', data);
  },
  // 获取文档详情历史记录
  getEPMHistoryList(data) {
    return post('/Windchill/servlet/gwc/platform/epm/history/getEPMHistoryList', data);
  },
};
